var __extends =
    (this && this.__extends) ||
    (function () {
      var e = function (t, o) {
        return (e =
          Object.setPrototypeOf ||
          ({ __proto__: [] } instanceof Array &&
            function (e, t) {
              e.__proto__ = t;
            }) ||
          function (e, t) {
            for (var o in t)
              Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
          })(t, o);
      };
      return function (t, o) {
        function n() {
          this.constructor = t;
        }
        if ("function" != typeof o && null !== o)
          throw new TypeError(
            "Class extends value " + String(o) + " is not a constructor or null"
          );
        e(t, o),
          (t.prototype =
            null === o
              ? Object.create(o)
              : ((n.prototype = o.prototype), new n()));
      };
    })(),
  FriendSeekDialog = (function (e) {
    function t() {
      var t = e.call(this) || this;
      return (
        t.btn_friendSeek_sure.on(Laya.Event.CLICK, t, t.onSeekSureFn),
        t.btn_friendSeek_cancle.on(Laya.Event.CLICK, t, t.onSeekCancleFn),
        t
      );
    }
    return (
      __extends(t, e),
      (t.showApplyMsgDialog = function (e) {
        null == this.seekDialog &&
          ((this.seekDialog = new t()), (this.seekDialog.zOrder = 1e3)),
          this.seekDialog.popup(!0),
          (this.seekDialog.seekObj = e),
          (this.seekDialog.label_friendSeek_content.text = e.content),
          (this.seekDialog.label_title.text = e.title),
          WebSocketService.addListener(
            {
              caller: this,
              code: e.act_id,
              method: this.seekDialog.onLoadReslutDataFn,
            },
            !0
          );
      }),
      (t.prototype.onSeekSureFn = function () {
        WebSocketService.send({
          c: this.seekObj.act_id,
          d: this.seekObj.okData,
        });
      }),
      (t.prototype.onSeekCancleFn = function () {
        WebSocketService.send({
          c: this.seekObj.act_id,
          d: this.seekObj.cancelData,
        }),
          this.close();
      }),
      (t.prototype.onLoadReslutDataFn = function (e) {
        0 == e.code ? this.close() : ToastView.toastView(e.msg);
      }),
      (t.close = function () {
        this.seekDialog && (this.seekDialog.close(), (this.seekDialog = null));
      }),
      t
    );
  })(ui.FriendMomentController.FriendSeekDialogUI);
